package com.sydata.constant;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public enum ApiType {
    UHUIBAO_CHAIN(1, "游惠宝链云API"),
    MACAU_TELECOM(2, "澳门电信API"),
    UHUIBAO_BOSS(3, "游惠宝BOSSAPI"),
    REMOTE_SIM(4, "远程卡"),
    REMOTE_LINKSFIELD(5, "领科"),
    ;

    private static final List<Map<Integer, String>> list = new ArrayList<>();

    public int type;
    public String name;

    private ApiType(int type, String name) {
        this.type = type;
        this.name = name;
    }

    static {

        Map<Integer, String> tmp;
        for (ApiType apiType : ApiType.values()) {
            tmp = new HashMap<>();
            tmp.put(apiType.type, apiType.name);
            list.add(tmp);
        }

    }

    public static List<Map<Integer, String>> getListEnum() {
        return list;
    }
}
